import request from "@/utils/request";

// 查询主要设备列表
export function listBasic(query) {
  return request({
    url: '/equipment/basic/list',
    method: 'get',
    params: query
  })
}

// 查询主要设备详细
export function getBasic(id) {
  return request({
    url: '/equipment/basic/' + id,
    method: 'get'
  })
}

// 新增主要设备
export function addBasic(data) {
  return request({
    url: '/equipment/basic',
    method: 'post',
    data: data
  })
}

// 修改主要设备
export function updateBasic(data) {
  return request({
    url: '/equipment/basic',
    method: 'put',
    data: data
  })
}

// 删除主要设备
export function delBasic(id) {
  return request({
    url: '/equipment/basic/' + id,
    method: 'delete'
  })
}
